package CreationalPatterns.Builder.product;

public class SportsCar extends Car {
    private Integer spareTireNumber = 0;

    public Integer getSpareTireNumber() {
        return spareTireNumber;
    }

    public Car setSpareTireNumber(Integer spareTireNumber) {
        this.spareTireNumber = spareTireNumber;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Car{");
        sb.append("seatNumber=").append(this.getSeatNumber());
        sb.append(", spareTireNumber=").append(this.getSpareTireNumber());
        sb.append(", Engine=").append(this.getEngine());
        sb.append(", tripComputer=").append(this.getTripComputer());
        sb.append('}');
        return sb.toString();
    }
}
